package com.elitetyc.eliteim.common.constant;

/**
 * @author yuanchao.tan
 * @version 1.0
 * @description 常量
 * @Date 2021/9/16 13:44
 */
public class Constants {

    public static final String DEFAULT_SUCCESS_MSG = "{\"success\":true}";
    public static final String DEFAULT_RID = "0";

    public static final String DEFAULT_TERMINAL_MSG_TEMPLATE = "[%s]\033[31;4m%s$\033[0m：" + "   %s";

    public static void defaultMsgTemplateFormat(Object... objects){
        System.out.printf((DEFAULT_TERMINAL_MSG_TEMPLATE) + "%n", objects);
    }

    public static class MsgType{
        // 文字消息
        public static  final  int STRING = 1;
    }

    public static class RequestType{
        // 登陆
        public static  final  int LOGIN = 1;
        // ping
        public static  final  int PING = 2;
        // 用户到用户
        public static  final  int U2U = 3;
        // 获取同服务器在线用户
        public static final int ULIST = 4;
    }
}
